package com.tyj.movie.service;

import com.alipay.api.AlipayApiException;
import com.tyj.movie.entity.MovieTheatreOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tyj.movie.to.MovieTheatreOrderTo;
import com.tyj.movie.vo.OrderPayVo;
import com.tyj.movie.vo.OrderVo;
import com.tyj.movie.vo.PayVo;

import javax.xml.crypto.Data;
import java.text.ParseException;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tyj
 * @since 2021-06-28
 */
public interface MovieTheatreOrderService extends IService<MovieTheatreOrder> {

    Integer submitOrder(MovieTheatreOrderTo movieTheatreOrderTo);

    OrderPayVo queryOrderPayVo(String orderSn);

    PayVo queryPayVoByOrderSn(String orderSn);

    List<OrderVo> queryUserOrder() throws ParseException;

    Integer refund(String orderSn) throws AlipayApiException;
}
